package com.nbufe.service.impl;

import com.baomidou.mybatisplus.core.conditions.query.LambdaQueryWrapper;
import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
import com.nbufe.domain.entity.Material;
import com.nbufe.mapper.MaterialMapper;
import com.nbufe.service.MaterialService;
import org.springframework.stereotype.Service;

import java.util.List;

/**
 * (Material)表服务实现类
 *
 * @author makejava
 * @since 2023-04-01 13:39:46
 */
@Service("materialService")
public class MaterialServiceImpl extends ServiceImpl<MaterialMapper, Material> implements MaterialService {

    @Override
    public List<Material> listFossiFuel() {
        LambdaQueryWrapper<Material> queryWrapper = new LambdaQueryWrapper<>();
        queryWrapper.eq(Material::getProduceStage, 1);
        return list(queryWrapper);
    }
}

